<?php
namespace app\common\validate;

use think\Validate;

class CounselorProblem extends Validate
{
    protected $rule = [
        'title'   => 'require|max:30',
        'tag_id'  => 'require|number'
    ];

    protected $message = [
        'title.require'   => '请输入想问的问题！',
        'title.max' => '字数超出限制！',
        'tag_id.require'   => '请选择问题类型',
        'tag_id.number'   => '未知的问题类型',
    ];
}
